package com.bobochang.warehouse.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 此User类只封装了用户的用户id、用户名和真实姓名
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class CurrentUser {

    private int userId;//用户id

    private String userCode;//用户名

    private String realName;//真实姓名
    
    private String userRole; //用户权限

    public CurrentUser(int userId, String userCode, String realName, String userRole){
        this.userId = userId;
        this.userCode = userCode;
        this.realName = realName;
        this.userRole = userRole;
    }

    private User user;
}
